package com.hd.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * 通知公告，最新动态 实体类
 * @author <a href="mailto:hzhh123@sina.cn">hzhh123</a>
 * @date 2018-10-29 02:56
 *
 * @version 1.0
 *
 */
@Entity
@Table(name = "doc_notice")
public class Notice implements Serializable {
	private static final long serialVersionUID = 1L;
	
	/**
	* id
	*/
	@Id
	@Column(name="id")
	private String id;
	/**
	* 接收部门
	*/
	@Column(name="rev_org_names")
	private String revOrgNames;
	/**
	* 标题
	*/
	@Column(name="title")
	private String title;
	/**
	* 类型
	*/
	@Column(name="type")
	private String type;
	/**
	* 公开
	*/
	@Column(name="overt")
	private Integer overt;
	/**
	* 接收部门id
	*/
	@Column(name="rev_orgids")
	private String revOrgids;
	/**
	* 接收人id
	*/
	@Column(name="rev_userids")
	private String revUserids;
	/**
	* 内容
	*/
	@Column(name="content")
	private String content;
	/**
	* 接收人
	*/
	@Column(name="rev_user_names")
	private String revUserNames;
	/**
	* 附件
	*/
	@Column(name="attach_ids")
	private String attachIds;
	@Transient
	private List<Attach>attachs=new ArrayList<Attach>();
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;
	@Column(name="user_id")
	private String userid;
	@Column(name="user_name")
	private String userName;
	@Transient
	private Integer readed;
	
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id=id;
	}
	public String getRevOrgNames(){
		return revOrgNames;
	}
	public void setRevOrgNames(String revOrgNames){
		this.revOrgNames=revOrgNames;
	}
	public String getTitle(){
		return title;
	}
	public void setTitle(String title){
		this.title=title;
	}
	public String getType(){
		return type;
	}
	public void setType(String type){
		this.type=type;
	}
	public Integer getOvert(){
		return overt;
	}
	public void setOvert(Integer overt){
		this.overt=overt;
	}
	public String getRevOrgids(){
		return revOrgids;
	}
	public void setRevOrgids(String revOrgids){
		this.revOrgids=revOrgids;
	}
	public String getRevUserids(){
		return revUserids;
	}
	public void setRevUserids(String revUserids){
		this.revUserids=revUserids;
	}
	public String getContent(){
		return content;
	}
	public void setContent(String content){
		this.content=content;
	}
	public String getRevUserNames(){
		return revUserNames;
	}
	public void setRevUserNames(String revUserNames){
		this.revUserNames=revUserNames;
	}
	public String getAttachIds(){
		return attachIds;
	}
	public void setAttachIds(String attachIds){
		this.attachIds=attachIds;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public List<Attach> getAttachs() {
		return attachs;
	}
	public void setAttachs(List<Attach> attachs) {
		this.attachs = attachs;
	}
	public Integer getReaded() {
		return readed;
	}
	public void setReaded(Integer readed) {
		this.readed = readed;
	}
	
	
}
